<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="../../favicon.ico">

    <title>用户登录</title>

    <!-- Bootstrap core CSS -->
    <link href="/static/bootstrap/css/bootstrap.min.css" rel="stylesheet">

    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
    <link href="/static/bootstrap/css/ie10-viewport-bug-workaround.css" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="/static/bootstrap/css/login.css" rel="stylesheet">

    <!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
    <script src="/static/bootstrap/js/ie-emulation-modes-warning.js"></script>
    <script src="/static/bootstrap/js/jquery.min.js"></script>
    <script>
        {% if login_res %}
            alert("{{ login_res }}")
        {% endif %}
    </script>
  </head>
<body style="background: url('/static/imgs/adminlogin.jpg')">
    <div class="container">
      <form class="form-signin" action="/admin/admin_login" method="post" id="loginForm">
        <h2 class="form-signin-heading" style="color:white;">管理员登陆</h2>

        <label for="inputName" class="sr-only">用户名</label>
        <input type="text" id="username" name="username" class="form-control" placeholder="用户名" required="" autofocus="">

        <label for="inputPassword" class="sr-only">密码</label>
        <input type="password" id="password" name="password" class="form-control" placeholder="密码" required="">

        <button id="btnLogin"  class="btn btn-lg btn-primary btn-block form-control" type="submit">登陆</button>
          <h4 style="color: white;"><a href="/user/to_login_page">普通用户登陆</a></h4>
      </form>

    </div>

    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
    <script src="/static/bootstrap/js/ie10-viewport-bug-workaround.js"></script>
</body>
</html>